/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package jp.co.irep.juten.controller;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import javax.ejb.EJB;
import javax.inject.Inject;
import javax.inject.Named;
import jp.co.irep.juten.facade.AkenFacade;

import jp.co.irep.juten.view.AkenViewBean;

/**
 *
 * @author toan_nguyen
 */

@Named
public class AkenControllerBean implements Serializable{
    
    @EJB AkenFacade akenFacade;
    
    @Inject
    private AkenViewBean akenViewBean;
    
    public String find(){
        getAkenViewBean().setAkenList(akenFacade.findAll());
        return "index";
    }

    

    public AkenViewBean getAkenViewBean() {
        return akenViewBean;
    }

    public void setAkenViewBean(AkenViewBean akenViewBean) {
        this.akenViewBean = akenViewBean;
    }

}
